//
//  UserDefaultsUtil.m
//  SettingBundle
//
//  Created by chenliang on 14-4-28.
//  Copyright (c) 2014年 chenliang. All rights reserved.
//

#import "UserDefaultsUtil.h"

@implementation UserDefaultsUtil


+(NSUserDefaults*)init
{
    return [NSUserDefaults standardUserDefaults];
}

//保存值
+(void)setObject:(id)value forKey:(NSString*)key
{
    [self.init setObject:value forKey:key];
}

//获取值
+(id)objectForKey:(NSString*)key
{
    return [self.init objectForKey:key];
}

+(void)setInteger:(NSInteger)value forKey:(NSString *)key
{
    [self.init setInteger:value forKey:key];
}

+(NSInteger)integerForKey:(NSString *)key{
    return [self.init integerForKey:key];
}


+(void)setBool:(BOOL)value forKey:(NSString *)key
{
    [self.init setBool:value forKey:key];
}

+(BOOL)boolForKey:(NSString *)key
{
    return [self.init boolForKey:key];
}



+(void)setFloat:(float)value forKey:(NSString *)key
{
    [self.init setFloat:value forKey:key];
}

+(float)floatForKey:(NSString *)key
{
    return [self.init floatForKey:key];
}


+(void)setDouble:(double)value forKey:(NSString *)key
{
    [self.init setDouble:value forKey:key];
}

+(double)doubleForKey:(NSString *)key
{
    return [self.init doubleForKey:key];
}


@end
